package com.micro.service.common.utils;

import org.apache.commons.lang.StringUtils;

import javax.servlet.http.HttpServletRequest;

/**
 * @author lvxiucai
 * @description
 * @date 2019/11/26
 */
public class ImeiUtils {


    /**
     * @author lvxiucai
     * @description 获取请求头中的imei号
     * @date 2019/9/27
     * @param request
     * @return
     **/
    public static String getImeiFromHeaders(HttpServletRequest request){
        String imei = request.getHeader("client_imei");
        if(StringUtils.isNotBlank(imei)){
            return imei;
        }
        return null;
    }
}
